package com.xinjiang.electricpower.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author feizhao
 * @date 2022/11/22
 * @apiNote
 */
@Data
@ToString
@ApiModel("工单池返回数据VO类")
public class WorkOrderPoolVO {

    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String id;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    private String sbId;
    /**
     * 工单类型
     */
    @Excel(name = "工单类型")
    @ApiModelProperty(value = "工单类型")
    private String orderTypeName;
    /**
     * 原系统工单编号
     */
    @Excel(name = "原系统工单编号")
    @ApiModelProperty(value = "原系统工单编号")
    private String generalOrderNo;
    /**
     * 来源系统
     */
    @Excel(name = "来源系统")
    @ApiModelProperty(value = "来源系统")
    private String systemName;
    /**
     * 供电所名称
     */
    @Excel(name = "供电单位")
    @ApiModelProperty(value = "供电所名称")
    private String orgName;
    /**
     * 台区名称
     */
    @Excel(name = "台区名称")
    @ApiModelProperty(value = "台区名称")
    private String tgName;
    /**
     * 工单状态 1待处理(签收)、2执行中、3已完成
     */
    @Excel(name = "工单状态", readConverterExp = "1=待签收,2=执行中,3=已完成")
    @ApiModelProperty(value = "工单状态 1待签收、2执行中、3已完成")
    private String status;
    /**
     * 当前节点
     */
    @Excel(name = "当前节点")
    @ApiModelProperty(value = "当前节点")
    private String activname;

    /**
     * 预警等级
     */
    @Excel(name = "预警级别", readConverterExp = "1=不紧急,2=一般,3=预警,4=紧急,5=非常紧急")
    @ApiModelProperty(value = "预警等级")
    private String priority;

    /**
     * 工单性质
     */
    @Excel(name = "工单性质", readConverterExp = "1=服务工单,2=主动工单,3=业务工单,4=督办工单")
    @ApiModelProperty(value = "工单性质")
    private String nature;
    /**
     * 派发时间
     */
    @Excel(name = "派发时间",dateFormat="yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "派发时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dispatchTime;
    /**
     * 当前处理人
     */
    @Excel(name = "当前处理人")
    @ApiModelProperty(value = "当前处理人")
    private String usernames;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间",dateFormat="yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime beginDate;

    /**
     * 完成时间
     */
    @Excel(name = "结束时间",dateFormat="yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime finishTime;

    /**
     * 经纬度
     */
    @ApiModelProperty(value = "经纬度")
    private String longtitudeAndLatitude;

    @ApiModelProperty(value = "工单类型")
   private String orderTypeCode;
}
